package com.plian.system.entity.om.module;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @description: 模块配置信息子企业信息
 * @author: takeoff
 * @create: 2022/3/28 上午10:09
 */
@Data
@TableName("om_module_child")
@EqualsAndHashCode(callSuper = true)
public class ModuleChild extends BaseEntity {

    @ApiModelProperty(value = "业务模块Id")
    private Integer formType;

    @ApiModelProperty(value = "父类企业Id")
    private String orgId;

    @ApiModelProperty(value = "子类企业Id")
    private String childOrgId;

    @ApiModelProperty(value = "生效开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty(value = "生效结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
